<template>
    <el-row :span="24" class="col" style="margin: 20px 0;">
        <el-col :span="3" style="text-align: right;padding: 7px 10px;">骑手名称</el-col>
        <el-col :span="20"><el-input v-model="qishou.deliverymanName"></el-input></el-col>
    </el-row>
    <el-row :span="24" class="col">
        <el-col :span="3" style="text-align: right;padding: 7px 10px;">骑手手机号</el-col>
        <el-col :span="20"><el-input v-model="qishou.deliverymanPhone"></el-input></el-col>
    </el-row>
    <el-row :span="24" class="col" style="margin: 20px 0;">
        <el-col :span="3" :offset="18">
            <el-button type="default" @click="cancle">取消</el-button></el-col>
        <el-col :span="3">
            <el-button type="primary" @click="save">保存</el-button></el-col>
    </el-row>
</template>

<script setup>
// import axios from "axios";
import { ref,defineEmits } from "vue";

let qishou = ref({
    "deliverymanName": "",
    "deliverymanPhone": "",
    "deliverymanId": ""
});

const emits = defineEmits(["operate"]);

const save = function(){
    emits("operate",{data:qishou.value,name:"addDeliveryman"});

}
const cancle = function () {
    emits("operate");
}

</script>

<style lang="less" scoped></style>